package com.kfxie.mapper;

import com.kfxie.domain.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {
    @Select("select*from `user`")
    List<User> findAll();

    @Insert("insert into `user` values(null,#{name})")
    void save(User u);
}
